﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 计科2015_31
{
    public partial class 实验1_3_1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            int grade = int.Parse(TextBox1.Text);
            if (grade >= 90 && grade <= 100)
                Label1.Text = "等级为A";
            else
                if (grade >= 80 && grade <= 90)
                Label1.Text = "等级为B";
            else
                 if (grade >= 70 && grade <= 80)
                Label1.Text = "等级为C";
            else
                  if (grade >= 60 && grade <= 70)
                Label1.Text = "等级为D";
            else
                Label1.Text = "等级为E";
        }

        protected void TextBox1_TextChanged(object sender, EventArgs e)
        {

        }
    }
}